package models;
 
import play.*;
import play.db.jpa.*;
 
import javax.persistence.*;

import java.math.BigDecimal;
import java.util.*;
import play.data.validation.Email;
import play.data.validation.MaxSize;
import play.data.validation.MinSize;
import play.data.validation.Required;
import play.db.jpa.Model;


@Entity
public class Komponent extends Model {

	@Required
    @MaxSize(50)
    public String komp_name;
    
    @MaxSize(5)
    @MinSize(3)
    public String komp_edb_center_nr;
    
    //@Required
    //@MaxSize(20)
    //public String komp_version_nr;
    
    @Required
    @MaxSize(180) 
    public String komp_note;
    
    @Required
    @MaxSize(10) 
    @MinSize(2)
    public String lokation_id;

    public String toString() {
        return "Komponent(" + komp_name + "," + komp_note + "," + komp_edb_center_nr + "," + lokation_id + ")";
    }
	
	
}

